﻿
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using KDS.Mes.Mes.Workshops.Dtos;
using KDS.Mes.Dto;

namespace KDS.Mes.Mes.Workshops
{
    /// <summary>
    /// 车间信息服务接口
    /// </summary>
    public interface IWorkshopAppService : IApplicationService
    {
        #region 车间信息管理

        PagedResultDto<WorkshopListDto> GetPagedWorkshops(GetWorkshopInput input);

        /// <summary>
        /// 根据查询条件获取车间信息分页列表
        /// </summary>
        Task<PagedResultDto<WorkshopListDto>> GetPagedWorkshopsAsync(GetWorkshopInput input);

        /// <summary>
        /// 通过Id获取车间信息信息进行编辑或修改 
        /// </summary>
        Task<GetWorkshopForEditOutput> GetWorkshopForEditAsync(NullableIdDto<int> input);

        /// <summary>
        /// 通过指定id获取车间信息ListDto信息
        /// </summary>
        Task<WorkshopListDto> GetWorkshopByIdAsync(EntityDto<int> input);


        /// <summary>
        /// 根据FactoryId获取对应的Workshop
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        List<ComboboxItemDto> GetWorkshopByFactoryId(NullableIdDto<int> input);

        /// <summary>
        /// 新增或更改车间信息
        /// </summary>
        Task CreateOrUpdateWorkshopAsync(CreateOrUpdateWorkshopInput input);





        /// <summary>
        /// 新增车间信息
        /// </summary>
        Task<WorkshopEditDto> CreateWorkshopAsync(WorkshopEditDto input);

        /// <summary>
        /// 更新车间信息
        /// </summary>
        Task UpdateWorkshopAsync(WorkshopEditDto input);

        /// <summary>
        /// 删除车间信息
        /// </summary>
        Task DeleteWorkshopAsync(EntityDto<int> input);

        /// <summary>
        /// 批量删除车间信息
        /// </summary>
        Task BatchDeleteWorkshopAsync(List<int> input);

        #endregion

        #region Excel导出功能



        /// <summary>
        /// 获取车间信息信息转换为Excel
        /// </summary>
        /// <returns></returns>
        Task<FileDto> GetWorkshopToExcel();

        #endregion





    }
}
